﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace JCPogi.Core {
    
    public class JCPogiModemConfiguration : ConfigurationSection {

        static JCPogiModemConfiguration() {

        }

        public static JCPogiModemConfiguration Current {
            get {
                return ConfigurationManager.GetSection(JCPOGICONFIGSECTION_KEY) as JCPogiModemConfiguration;
            }
        }

        [ConfigurationProperty(COMPORT_KEY, IsRequired=true)]
        public string COMPort {
            get { return base[COMPORT_KEY] as string; }
            set { base[COMPORT_KEY] = value; }
        }

        const string JCPOGICONFIGSECTION_KEY = "jc-santos-pogi";
        const string COMPORT_KEY = "comPort";
    }
}
